@import "themes";

.nav {
  .nav-item{
    .nav-link:hover,
    .nav-link:focus{
      background-color: transparent;
    }
  }
}
.navbar{
  border: $none;
  font-size: $font-size-base;
  transition: all 0.4s;
  -webkit-transition: all 0.4s;
  padding: 0;
  background: $white-color;
  box-shadow: 0 0.375em 0.625em -0.25em rgba(0, 0, 0, 0.15);
  @include themed() {
    background: t('backgroundColor');
  }

  &.navbar-light {
    box-shadow: none;
    border-bottom: 0.0625em solid;
    @include themed() {
      background-color: t('navbarBackgroundColor');
      border-color: t('navbarBorderColor');
    }
  }
  .navbar-toggler-right{
    float: right;
  }

  .navbar-brand{
    font-weight: $font-weight-bold;
    margin: $navbar-margin-brand;
    padding: $navbar-padding-brand;
    font-size: $font-size-base;
    transition: 0.3s;
    text-transform: uppercase;
    @include themed() {
      color: t('navbarTextColor');
    }
  }
  .navbar-brand:hover{
    opacity: 1;
  }
  .nav-link{
    i{
      font-size: 1rem;
      position: relative;
      top: 0.1875em;
      right: 0.25em;
    }
    [class^="fa"]{
      top: 0.125em;
    }
    p{
      margin: 0em 0em;
      text-transform: uppercase;
      font-weight: 200;
      font-size: 0.875rem;
      line-height: 1em;
      padding: 0.9375em 0em;
      transition: 0.3s;
      font-family: Poppins;
      @include themed() {
        color: t('navbarTextColor');
      }
    }
    p:hover{
      opacity: 1;
    }
    p:active{
      color: $info-color
    }
  }
  .navbar-nav{.nav-item .nav-link {
      line-height: 1.6;
      margin: $navbar-margin-a;
      padding: $navbar-padding-a;
      opacity: .7;
      text-transform: uppercase;
      font-weight: 200;
      font-size: 0.875rem;
      line-height: 1em;
      transition: 0.3s;
      font-family: Poppins;
      @include themed() {
        color: t('navbarIconColor');
      }

      &:hover{
        opacity: 1
      }

      &:active{
        color: $info-color
      }
    }
    .nav-item .nav-link.btn{
      margin: $navbar-margin-a-btn;
      padding: 0.5625em;

    }

    .dropdown-menu{
      border-radius: $border-radius-extreme;
      margin-top: 0.0625em;
    }
  }
  .navbar-collapse{
    & .nav-item{
      & .nav-link{
        p{
          display: inline;
        }
      }
      & .dropdown-item{
        i{
          margin: 0 0.625em;
          margin: 0 0.625em 0em 0.3125em;
          font-size: 1.125rem;
          position: relative;
          top: 0.1875em;
        }
      }
    }
    &.show{
      & .navbar-nav{
        & .nav-item{
          padding-right: 0.625em;
        }
      }
    }
  }

  
  .notification-bubble{
    right: 4.5em;
    padding: 0.2em 0.6em;
    position: absolute;
    top: 0.9375em;
  }
  .btn{
    margin: $navbar-margin-btn;
    font-size: $font-size-small;
    i{
      //    margin-right: 0.3125em !important;
      font-size: 0.875rem;
      line-height: 0.8125em;
    }
  }
  .btn-simple{
    font-size: $font-size-medium;
  }
  .caret{
    @include center-item();
  }
  &.navbar-transparent{
    padding-top: 1.5625em;
  }
  .logo-container{
    margin-top: 0.3125em;
    .logo{
      overflow: hidden;
      border-radius: 50%;
      border: 0.0625em solid #333333;
      width: 3.125em;
      float: left;

      img{
        width: 100%;
      }
    }
    .brand{
      font-size: 1.125rem;
      color: #FFFFFF;
      line-height: 1.25em;
      float: left;
      margin-left: 0.625em;
      margin-top: 0.3125em;
      width: 4.6875em;
      height: 3.125em;
    }
  }
}
.navbar.fixed-top{
  .nav-link{
    i{
      top: 0.25em;
    }
  }
}
.navbar-absolute{
  position: absolute;
  width: 100%;
  padding-top: 0.625em;
  z-index: 1029;
}
.navbar-transparent, [class*="bg"]{
  .navbar-brand{
    color: $white-color;
    @include opacity(.9);

    &:focus,
    &:hover{
      background-color: transparent;
      @include opacity(1);
      color: $white-color;
    }
  }

  .navbar-nav{
    .nav-item .nav-link:not(.btn){
      color: $white-color;
      border-color: $white-color;
    }
    .active .nav-link
    .active .nav-link:hover,
    .active .nav-link:focus,
    .nav-item .nav-link:hover,
    .nav-item .nav-link:focus{
      background-color: transparent;
      color: oranger;
      @include opacity(1);
    }
    .nav .nav-item a.btn:hover{
      background-color: transparent;
    }

    .dropdown .nav-link .caret,
    .dropdown .nav-link:hover .caret,
    .dropdown .nav-link:focus .caret{
      border-bottom-color: $white-color;
      border-top-color: $white-color;
    }

    .open .nav-link,
    .open .nav-link:hover,
    .open .nav-link:focus {
      background-color: transparent;
      color: $default-color;
      @include opacity(1);
    }
  }

  .btn-default.btn-fill{
    color: $dark-gray;
    background-color: $white-color;
    @include opacity(.9);
  }
  .btn-default.btn-fill:hover,
  .btn-default.btn-fill:focus,
  .btn-default.btn-fill:active,
  .btn-default.btn-fill.active,
  .open .dropdown-toggle.btn-fill.btn-default{
    border-color: $white-color;
    @include opacity(1);
  }

}

.nav-open .nav .caret{
  border-bottom-color: $white-color;
  border-top-color: $white-color;
}

.navbar-default {
  .brand{
    color: $font-color !important;
  }
  .navbar-nav{
    .nav-item .nav-link:not(.btn){
      color: $dark-gray;
    }

    .active .nav-link,
    .active .nav-link:not(.btn):hover,
    .active .nav-link:not(.btn):focus,
    .nav-item .nav-link:not(.btn):hover,
    .nav-item .nav-link:not(.btn):focus {
      background-color: transparent;
      border-radius: 0.1875em;
      color: $info-color;
      @include opacity(1);
    }

    .dropdown .nav-link:hover .caret,
    .dropdown .nav-link:focus .caret {
      border-bottom-color: $info-color;
      border-top-color: $info-color;

    }

    .open .nav-link,
    .open .nav-link:hover,
    .open .nav-link:focus{
      background-color: transparent;
      color: $info-color;
    }

    .navbar-toggler:hover,.navbar-toggler:focus {
      background-color: transparent;
    }

  }

  &:not(.navbar-transparent) .btn-default:hover{
    color: $info-color;
    border-color: $info-color;
  }
  &:not(.navbar-transparent) .btn-neutral,
  &:not(.navbar-transparent) .btn-neutral:hover,
  &:not(.navbar-transparent) .btn-neutral:active{
    color: $dark-gray;
  }
}

/*      Navbar with icons            */

.navbar-icons{
  &.navbar .navbar-brand{
    margin-top: 0.75em;
    margin-bottom: 0.75em;
  }
  .navbar-nav{
    .nav-item .nav-link{
      text-align: center;
      padding: 0.625em;
      margin: 0.625em;
    }

    [class^="pe"] {
      font-size: 1.875rem;
      position: relative;
    }
    p {
      margin: 0.1875em 0em 0em;
    }
  }
}

.navbar-form{
  @include box-shadow(none);
  .form-control{
    @include light-form();
    height: 1.375em;
    font-size: $font-size-navbar;
    line-height: $line-height-general;
    color: $light-gray;
  }
  .navbar-transparent & .form-control,
  [class*="bg"] & .form-control{
    color: $white-color;
    border: $none;
    border-bottom: 0.0625em solid rgba($white-color,.6);
  }

}

.navbar-toggler{
  margin-top: 1.1875em;
  margin-bottom: 1.1875em;
  border: $none;

  .icon-bar {
    background-color: $white-color;
  }
  .navbar-collapse,
  .navbar-form {
    border-color: transparent;
  }

  &.navbar-default .navbar-toggler:hover,
  &.navbar-default .navbar-toggler:focus {
    background-color: transparent;
  }
}

// stefan making edits

.navbar-light .navbar-nav .nav-link:hover{
  color: $light-gray;
}

.red{
  color: #ff0000;
}
.collapse .navbar-text{
  line-height: 3.4375em;
}

.navbar-default .navbar-brand{
  color: $default-color;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus{
  color: #5e5e5e;
}
.navbar-collapse.show{
  .navbar-nav{
    .nav-item{
      padding-right: 6.25em;
    }
  }
}
.nav-tabs-navigation{
  &:last-child{
    .nav-stacked{
      border-right: 0.0625em solid #F1EAE0;
      font-size: 1rem;
      font-weight: 600;
      padding: 1.25em 0em;
      .nav-item{
        .nav-link{
          padding: 0.4375em 1.5625em;
        }
      }
    }
    border-bottom: 0em none;
  }
}


//menu bars

.navbar-nav > li > .dropdown-menu,
.dropdown .dropdown-menu{
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) 0s, opacity 0.3s ease 0s, height 0s linear 0.35s;
}

.navbar-toggler{
  outline: none !important;
  cursor: pointer;

  .navbar & .navbar-toggler-bar{
    background: $font-color;
  }

  .navbar[class*="bg-"] & .navbar-toggler-bar,
  .navbar.navbar-transparent & .navbar-toggler-bar{
    background: #fff;
  }

  .navbar-toggler-bar{
    display: block;
    position: relative;
    width: 1.5em;
    height: 0.125em;
    border-radius: 0.0625em;
    margin: 0em auto;
  }
}


.navbar-toggler .navbar-toggler-bar + .navbar-toggler-bar,
.navbar-toggler .navbar-toggler-icon + .navbar-toggler-icon{
  margin-top: 0.25em;
}
.navbar .navbar-toggler{
  margin-top: 1.5em;
}
.navbar .navbar-burger{
  margin-top: 1.25em;
}
.navbar-toggler-icon{
  display: block;
  position: relative;
  width: 1.5em;
  height: 0.125em;
  border-radius: 0.0625em;
  margin: 0em auto;
  background: gray;
}
.no-transition{
  -webkit-transition: none;
  -moz-transition: none;
  -o-transition: none;
  -ms-transition: none;
  transition: none;
}
#description-areas .nav-stacked .nav-link.active:before,
#navtabs-row .nav-stacked .nav-link.active:before{
  border-right: 0.6875em solid #F1EAE0;
  border-top: 0.6875em solid transparent;
  border-bottom: 0.6875em solid transparent;
  content: "";
  display: inline-block;
  position: absolute;
  right: 0em;
  bottom: 0.4375em;
}
#description-areas .nav-stacked .nav-link.active:after,
#navtabs-row .nav-stacked .nav-link.active:after{
  border-right: 0.6875em solid $white-color;
  border-top: 0.6875em solid transparent;
  border-bottom: 0.6875em solid transparent;
  content: "";
  display: inline-block;
  position: absolute;
  right: -0.0625em;
  bottom: 0.4375em;
}
#second-tabs{
  margin-left: 1.25em;
}

// navigation areas

.scroll-area{
  max-height: 19.375em;
  overflow-y: scroll;
  list-style: outside none none;
  padding: 0em;
}

.burger-menu{
  .collapse{
    .navbar-nav{
      a{
        color: $black-color;
      }
    }
  }
}
.navbar-transparent{
  background: transparent !important;
  border-bottom: 0.0625em solid transparent;
  box-shadow: none;

  .dropdown-menu .divider{
    background-color: rgba($white-color,.2);
  }
}
.section-navbars{
  #menu-dropdown{
    .navbar{
      .navbar-toggler{
        .navbar-toggler-icon{
          background: $white-color;
        }
      }
    }
  }
}
.nav-no-padding{
  padding-top: 0em !important;
}

.moving-arrow {
  @include themed() {
    border-right-color: t('sidebarArrowColor');
  }
  border-right: 1.0625em solid;
  border-top: 1.0625em solid transparent;
  border-bottom: 1.0625em solid transparent;
  display: inline-block;
  position: absolute;
  left: 15.2175em;
  top: 16.5em;
  transition: all 0.5s cubic-bezier(0.19, 1.42, 0.79, 1);
}
@media (max-width: 992px) {
  .moving-arrow {
    display: none;
  }
}
